package com.oracle.application.controller;


import com.oracle.application.entity.Protype;
import com.oracle.application.service.IProtypeService;
import com.oracle.application.vo.R;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * <p>
 * 图书附属图 前端控制器
 * </p>
 *
 * @author zhaoran
 * @since 2021-07-06
 */
@RestController
@RequestMapping("/protype")
public class ProtypeController {
    @Autowired
    private IProtypeService iProtypeService;

    /**
     * 获取所有类型
     * @return
     */
    @RequestMapping("/getAllProType")
    public R<List<Protype>> getAllProType(){
        List<Protype> list = iProtypeService.list();
        return new R<List<Protype>>(200,"success",list);
    }

}
